﻿<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="false" CodeFile="KeStazeni.aspx.vb" Inherits="Pages_Fotogalerie" %>

<%@ Import Namespace="System.Globalization" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Hlavni" Runat="Server">
<asp:SqlDataSource ID="DS_Obsah" runat="server" ConnectionString="<%$ ConnectionStrings:DataHorejsi %>"
        SelectCommand="SELECT Obsah,ObsahEN FROM [T_Obsah_ND] WHERE ([ID_mista] = @ID_mista)">
        <SelectParameters>
            <asp:Parameter DefaultValue="5" Name="ID_mista" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    
    <h1>
    <asp:Localize ID="Localize1" runat="server" Text='<%$ Resources: popisBlok %>'></asp:Localize>
    </h1>
<br />
<asp:DataList ID="DLS_Stazeni" runat="server" DataSourceID="DS_Obsah" Width="600px">
        <ItemTemplate>
            <%If CultureInfo.CurrentCulture.ToString = "cs-CZ" Then%>
            <asp:Label ID="ObsahLabel" runat="server" Text='<%# Eval("Obsah") %>'></asp:Label><br />
            <%Else%>
            <asp:Label ID="ObsahLabelEN" runat="server" Text='<%# Eval("ObsahEN") %>'></asp:Label><br />
            <%End If%>
         </ItemTemplate>
    </asp:DataList>
</asp:Content>

